package com.usefullc.crawler.param;
import com.baomidou.mybatisplus.annotation.TableField;
import com.usefullc.common.domain.BaseDomain;
import com.usefullc.common.enums.ValidTypeEnum;
import com.usefullc.common.enums.ValidActionEnum;
import com.usefullc.system.validator.UsefulPropertyVerify;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 爬虫活动实例参数实体
 * @author: 星空
 * @date: 2022-12-14
 */
@ApiModel
@Data
public class ActiveInstanceParam extends BaseDomain {

//useful_auto_generate_section_start

    @UsefulPropertyVerify(required=true)
    @ApiModelProperty(notes = "ID")
    private Long id;

    @UsefulPropertyVerify(required=true)
    @ApiModelProperty(notes = "活动ID")
    private Long activeId;

    @UsefulPropertyVerify(required=true)
    @ApiModelProperty(notes = "活动主实例ID")
    private Long activeMainInstanceId;

    @UsefulPropertyVerify(required=true)
    @ApiModelProperty(notes = "活动实例ID")
    private Long activeProcessId;

    @UsefulPropertyVerify(minLen=2, maxLen=16777215)
    @ApiModelProperty(notes = "失败内容")
    private String errContent;

    @UsefulPropertyVerify(required=true)
    @ApiModelProperty(notes = "是否拦截，调试（0 否； 1 是，默认 ")
    private Boolean intercept;

    @UsefulPropertyVerify(minLen=2, required=true, maxLen=50)
    @ApiModelProperty(notes = "名称")
    private String name;

    @UsefulPropertyVerify(minLen=2, maxLen=16777215)
    @ApiModelProperty(notes = "返回解析主体")
    private String responseAnalyseBody;

    @UsefulPropertyVerify(minLen=2, maxLen=16777215)
    @ApiModelProperty(notes = "返回主体")
    private String responseBody;

    @UsefulPropertyVerify(minLen=2, maxLen=3000)
    @ApiModelProperty(notes = "返回原生头部")
    private String responseRawHeader;

    @UsefulPropertyVerify(min=-2147483648, max=2147483647, required=true)
    @ApiModelProperty(notes = "状态（0 初始； 1 成功；2 失败 ")
    private Integer status;

    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "发费时间（毫秒数")
    private Long takeTime;

    @UsefulPropertyVerify(min=-2147483648, max=2147483647, required=true)
    @ApiModelProperty(notes = "任务状态（0 未处理，1 处理中  ")
    private Integer taskStatus;

    @UsefulPropertyVerify(required=true)
    @ApiModelProperty(notes = "模板ID")
    private Long templateId;

    @UsefulPropertyVerify(minLen=2, required=true, maxLen=500)
    @ApiModelProperty(notes = "URL")
    private String url;

    @ApiModelProperty(notes = "变量")
    private String variables;

//useful_auto_generate_section_end

}
